package com.x.ant.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

@MappingTable(tableName = "ANT_BILL_TRUCK")
public class BillTruck extends BaseObject {
	@MappingColumn(columnName = "BILL_ID", columnPk = true, columnLength = 32)
	private String billId;

	@MappingTable(tableName = "ANT_BILL")
	private Bill bill;

	@MappingColumn(columnName = "TRUCK_ID", columnPk = true)
	private String truckId;

    @MappingTable(tableName = "ANT_TRUCK")
    private Truck truck;

	@MappingColumn(columnName = "USER_NAME", columnOnlySelect = true)
	private String userName;

	@MappingColumn(columnName = "USER_MOBILE", columnOnlySelect = true)
	private String userMobile;

	@MappingColumn(columnName = "BILL_TRUCK_LOAD")
    private Integer billTruckLoad;

    @MappingColumn(columnName = "BILL_TRUCK_STATE")
    private Integer billTruckState;

    @MappingColumn(columnName = "BILL_TRUCK_CREATE_TIME")
	private Date billTruckCreateTime;

	public String getBillId() {
		return billId;
	}

	public void setBillId(String billId) {
		this.billId = billId;
	}

	public Bill getBill() {
		return bill;
	}

	public void setBill(Bill bill) {
		this.bill = bill;
	}

	public String getTruckId() {
		return truckId;
	}

	public void setTruckId(String truckId) {
		this.truckId = truckId;
	}

	public Truck getTruck() {
		return truck;
	}

	public void setTruck(Truck truck) {
		this.truck = truck;
	}

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public Integer getBillTruckLoad() {
        return billTruckLoad;
    }

    public void setBillTruckLoad(Integer billTruckLoad) {
        this.billTruckLoad = billTruckLoad;
    }

    public Integer getBillTruckState() {
        return billTruckState;
    }

    public void setBillTruckState(Integer billTruckState) {
        this.billTruckState = billTruckState;
    }

    public Date getBillTruckCreateTime() {
		return billTruckCreateTime;
	}

	public void setBillTruckCreateTime(Date billTruckCreateTime) {
		this.billTruckCreateTime = billTruckCreateTime;
	}

}
